package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StoreProductTagManagementMapper;
import com.ruoyi.system.domain.StoreProductTagManagement;
import com.ruoyi.system.service.IStoreProductTagManagementService;

/**
 * 门店商品标签管理信息 Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-28
 */
@Service
public class StoreProductTagManagementServiceImpl implements IStoreProductTagManagementService
{
    @Autowired
    private StoreProductTagManagementMapper storeProductTagManagementMapper;

    /**
     * 通过id查询门店商品标签管理信息
     *
     * @param id 门店商品标签管理信息主键
     * @return 门店商品标签管理信息
     */
    @Override
    public StoreProductTagManagement selectStoreProductTagManagementById(Long id)
    {
        return storeProductTagManagementMapper.selectStoreProductTagManagementById(id);
    }

    /**
     * 通过门店名称查询门店商品标签管理信息列表
     *
     * @param storeName 门店名称
     * @return 门店商品标签管理信息
     */
    @Override
    public List<StoreProductTagManagement> selectStoreProductTagManagementListByName(String storeName)
    {
        return storeProductTagManagementMapper.selectStoreProductTagManagementListByName(storeName);
    }

    /**
     * 新增门店商品标签管理信息
     *
     * @param storeProductTagManagement 门店商品标签管理信息
     * @return 结果
     */
    @Override
    public int insertStoreProductTagManagement(StoreProductTagManagement storeProductTagManagement)
    {
        return storeProductTagManagementMapper.insertStoreProductTagManagement(storeProductTagManagement);
    }

    /**
     * 修改门店商品标签管理信息
     *
     * @param storeProductTagManagement 门店商品标签管理信息
     * @return 结果
     */
    @Override
    public int updateStoreProductTagManagement(StoreProductTagManagement storeProductTagManagement)
    {
        return storeProductTagManagementMapper.updateStoreProductTagManagement(storeProductTagManagement);
    }

    /**
     * 通过id批量删除门店商品标签管理信息
     *
     * @param ids 需要删除的门店商品标签管理信息主键
     * @return 结果
     */
    @Override
    public int deleteStoreProductTagManagementByIds(Long[] ids)
    {
        return storeProductTagManagementMapper.deleteStoreProductTagManagementByIds(ids);
    }

    /**
     * 删除门店商品标签管理信息
     *
     * @param id 门店商品标签管理信息主键
     * @return 结果
     */
    @Override
    public int deleteStoreProductTagManagementById(Long id)
    {
        return storeProductTagManagementMapper.deleteStoreProductTagManagementById(id);
    }
}
